package org.dromara.event.domain.bo;

import org.dromara.event.domain.PassReservation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 通行预约业务对象 pass_reservation
 *
 * @author Yi LH
 * @date 2025-05-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PassReservation.class, reverseConvertGenerate = false)
public class PassReservationBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 预约人id
     */
    private Long applicantId;

    /**
     * 预约人姓名
     */
    private String applicantName;

    /**
     * 随行人
     */
    private String companions;

    /**
     * 缘由
     */
    private String reason;

    /**
     * 计划进入时间
     */
    private Date scheduledEntry;

    /**
     * 计划离开时间
     */
    private Date scheduledExit;

    /**
     * 审批状态（0待审批 1通过 2拒绝）
     */
    private String approvalStatus;

    /**
     * 审批人
     */
    private Long approver;


}
